Formatting Text

Much better, no?

We have already mentioned that PHYZZX put extra space above and below a chapter heading. Since all of the chapter headings for this writeup were generated using the command
chapter
, you only have to examine them to see how TEX handles these extra spaces.

Another remark worth making is that in the current incarnation of PHYZZX you do not have to worry about chapter titles which are too long. The chapter macro is set up to split your line when necessary and automatically center each line. To accomplish this feat PHYZZX makes use of a control sequence called
titlestyle
. The command
titlestyle
is worth knowing about because sometimes you want to be able to type in a longish amount of material and want the various lines to be centered, not left or right adjusted after each break. Typing
titlestyle{ text }
will accomplish this feat. In addition, if you don't like the way PHYZZX chooses to break the lines you can force your desires upon the machine by inserting: the command
break
. This command forces the line to break at the point where the command is given. The command
nobreak
will stop the line from breaking at an undesirable place, and the symbol ˜ will insert some unbreakable space between words. This stuff is covered in the basic books on TEX and we refer you to there for details. Combining these control sequences with the control sequence
titlestyle
allows you to easily achieve many interesting effects. For example, you can generate an invitation by typing

titlestyle {
it You are cordially invited
break
to the coming out party for
break
the new macro package
break

rm PHYZZX
break }

and obtain You are cordially invited
to the coming out party for
the new macro package
PHYZZX

If you are really sharp, and I assume that you are, you will have noticed that the type in which the invitation is set is larger than the normal type. Remember that I already told you that titles are set in larger type than the basic text. I also told you that the commands
rm
,
bf
,
it
, etc., change the style of the font but leave it the same size. What we have not discussed is how you change the size of the font the way
titlestyle
does with impunity. Well, all things come to he who waits! Now's the time to discuss this point.

Font sizes, as you learn from reading the TEXbook come in sizes measured in a mysterious printer's unit call points. You don't have to know what a point is, you only have to know that most of the text in this writeup is twelve point type, the titles are in fourteen point type and the footnotes are in ten point type. It is possible for you to force TEX to use a particular size of type by saying
tenpoint
,
twelvepoint
or
fourteenpoint
; in which case the obvious thing happens. Thus, for example, if you change the typed instructions for generating the invitation to read

titlestyle {
twelvepoint
it You are cordially invited
break
to the coming out party for
break
the new macro package
break

rm PHYZZX
break }

you get -You are cordially invited
to the coming out party for
the new macro package
PHYZZX
and if you type

titlestyle {
tenpoint
it You are cordially invited
break
to the coming out party for
break
the new macro package
break

rm PHYZZX
break }

the result is You are cordially invited
to the coming out party for
the new macro package
PHYZZX



Subsections